Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

onLoad window.open method

515802Jun 13 2006 — edited Mar 12 2007
Hi.. When i set an onLoad attribute to page, window.open method does not work but when i set it to onClick it works..

For ex:
****************************************************************************
-----HTML Header----
<script>
function kapat() {
window.open('http://yahoo.com'); ------->does not work
alert('z'); ------->works
}
</script>

------Page HTML Body Attribute------
onLoad="kapat();" ------->onLoad event


****************************************************************************

-----HTML Header----
<script>
function kapat() {
window.open('http://yahoo.com'); ------->works
alert('z'); ------->works
}
</script>

------Page HTML Body Attribute------
onClick="kapat();" ------->onClick event



Any body knows why??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2007
Added on Jun 13 2006
9 comments
1,370 views