...

View Full Version : onload



keissfootball
10-14-2006, 10:30 AM
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

Mr J
10-14-2006, 04:55 PM
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>

keissfootball
10-15-2006, 09:41 AM
It didn't work, it just gave me somer error in alert box.

Mr J
10-15-2006, 11:26 AM
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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum