Go Back   CodingForums.com > :: Client side development > JavaScript programming

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 10-14-2006, 10:30 AM   PM User | #1
keissfootball
New Coder

 
Join Date: Jun 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
keissfootball is an unknown quantity at this point
onload

Hi! How can I make this show on the onload event?

<a href="123.html" target="_blank" rel="workplace" onclick="return TB_show('', this.href, false);">

It works onclick, while it is a link, but not at onload
keissfootball is offline   Reply With Quote
Old 10-14-2006, 04:55 PM   PM User | #2
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
You could try something like this but what does function TB_show do?

<script type="text/javascript">

onload=function openWin(url){
newWin=window.open(url)

TB_show('', url, false)
}

</script>
__________________
The silent one.

The most dangerous thing in the world is an idea.
The most dangerous person in the world is the one with an idea.
Mr J is offline   Reply With Quote
Old 10-15-2006, 09:41 AM   PM User | #3
keissfootball
New Coder

 
Join Date: Jun 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
keissfootball is an unknown quantity at this point
It didn't work, it just gave me somer error in alert box.
keissfootball is offline   Reply With Quote
Old 10-15-2006, 11:26 AM   PM User | #4
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
Try this, you still have not told me what function TB_show() does, thats probably what is causing the error

<script type="text/javascript">

onload=function openWin(){
newWin=window.open("123.html")

TB_show('', url, false)
}

</script>
__________________
The silent one.

The most dangerous thing in the world is an idea.
The most dangerous person in the world is the one with an idea.
Mr J 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 05:25 PM.


Advertisement
Log in to turn off these ads.