Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-07-2006, 09:06 PM   PM User | #1
TheOne(AKA:T1)
New Coder

 
Join Date: Feb 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
TheOne(AKA:T1) is an unknown quantity at this point
Adding an onLoad trigger to an iFrame

I've got this:
Code:
	var iframe = document.createElement("iframe");
I whant to add an onLoad event that trigger the function "qwerty()"
i tryed:
Code:
iframe.onLoad("qwerty();")
But...
ERROR!
any one can help me?
TheOne(AKA:T1) is offline   Reply With Quote
Old 02-08-2006, 10:40 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Code:
iframe.onload = qwerty;
Or if the onload handler has parameters:
Code:
iframe.onload = function(){qwerty(param1, param2)};
Watch the case of onload, it should not be onLoad.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 02-08-2006, 03:43 PM   PM User | #3
TheOne(AKA:T1)
New Coder

 
Join Date: Feb 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
TheOne(AKA:T1) is an unknown quantity at this point
Ah, thanks, You've got that award for something no? jaja
TheOne(AKA:T1) is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:39 AM.


Advertisement
Log in to turn off these ads.