Results 1 to 2 of 2

Thread: iframe issue loading page with javascript alerts

  1. #1
    Join Date
    Nov 2010

    iframe issue loading page with javascript alerts

    Hi i am loading a page into an iframe...
    <iframe src="http://www.cult.co.uk/men/shop/hoods-and-sweats/details/25705/75-wings-foil-hood" width="500" height="500" id="iframeTest"/>
    the page from cult.co.uk has javascript alert() messages embedded in the code, which are triggered when the page loads via the iframe.

    is there a way of suppressing the alert() messages?

    I know i can suppress alerts on my local site by adding the following function:

    function alert(){};

  2. #2
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    By short: you can't. That page belongs to another domain, thus you can not have JavaScript access to it. Cross-domain JavaScript relationship are restricted by default, due to obvious security reasons.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles