Results 1 to 2 of 2

Thread: iframe - how to suppress javascript alerts in src page

  1. #1
    jon.london Guest

    iframe - how to suppress javascript alerts in src page

    hi

    i am including an iframe in my page, as follows...

    Code:
    <iframe src="http://www.cult.co.uk/men/shop/hoods-and-sweats/details/26947/tin-tab-electronic-hood" />
    problem is that the included src page, brings up javascript alert errors, into my website! is there any way i can supress these messages?

    i know i can supress js alerts locally by using the following:

    Code:
    function alert(){}
    But i am not sure how to do this for an iframe.

    thanks

  2. #2
    steved is offline New Member: Posts Will Be Moderated
    Join Date
    May 2011
    Posts
    3

    Possible Solution

    I had a similar problem, and came up with the following code, which will usually work with IE (this suits my needs). I do not know about other broswers, and it can be disabled cleint side in IE. It also seems to ignore cookies, which was something else that I wanted.

    http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

    Code:
    <iframe src="child.htm" id="bframe" style="height:300px;width:300px;border:3px solid blue;" security="restricted"></iframe>

Similar Threads

  1. pleaseeee help.....linking two target(iframe and top of the page)
    By paparanch in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 13 Jan 2008, 08:47 PM
  2. Resizing Iframe Without Reloading Parent Page
    By ninja2001k in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 04 Apr 2006, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •