Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 opening new window and some other problem
Index -> Graphics and Design, Web Design -> (X)HTML Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Paul




PostPosted: Sat Apr 03, 2004 5:04 pm   Post subject: opening new window and some other problem

how do you set the dimensions of a new window you open?
I have
code:

<a href="index1.html" target="_blank" onMouseover="window.status='Read and agree to the disclaimer before entering!';return true" onMouseout="window.status=''">LINK</a>

also, what do I do when the page says "Done, but with errors on page"?
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Sun Apr 04, 2004 2:01 am   Post subject: (No subject)

i don't have an answer to your first question, but you may have to use javascript for what you want to do with the window.

as to your second question, do the w3c test thinger and see what they see, and also debug it by trying to see what youve done wrong.
Amailer




PostPosted: Sun Apr 04, 2004 9:04 am   Post subject: (No subject)

code:

<script type="text/javascript">
<!--
function openwindow(){
        window.open ("","Copyright","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=500,height=220");
}
//-->
</SCRIPT>


use that..
Paul




PostPosted: Sun Apr 04, 2004 9:23 am   Post subject: (No subject)

Im suppose to put it in the head of the page with the link right? how do I call this function?
Amailer




PostPosted: Sun Apr 04, 2004 9:35 am   Post subject: (No subject)

ya you are, and you just put it as the url of the link (in the <a href="...)
PaddyLong




PostPosted: Sun Apr 04, 2004 6:05 pm   Post subject: (No subject)

or as <a href="#" onClick='openwindow'>
Amailer




PostPosted: Sun Apr 04, 2004 6:09 pm   Post subject: (No subject)

code:

<script type="text/javascript">
<!--
function openwindow(url){
   window.open (url,"Copyright","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=500,height=220");
}
//-->
</SCRIPT>


code:

<a href="javascript:openwindow("http://testsite.com")">


Is that correct?
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> (X)HTML Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: