|
-
Jul 25th, 2001, 05:21 AM
#1
Thread Starter
Fanatic Member
Pop up window again....
I have another question about the pop up window I made a while ago... I need to specify the width and the height of the window that is made....
I was wondering if it is meant to go in the code like this:
onClick="javascript:window.open('text/oneday.txt',menubar='no',status='no',toolbar='no',width="400",height="600")";
-
Jul 25th, 2001, 09:57 AM
#2
PowerPoster
that should work!
taken from another site:
Code:
remote=window.open("http://www.enteract.com/~rhillego/courses/create_remote.html","remotewindow","width=100,height=250");
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Jul 25th, 2001, 10:57 AM
#3
Thread Starter
Fanatic Member
What happens is that it resizes the button image to that size for some stupid reason!! Oh well I will work it out...
-
Jul 25th, 2001, 11:05 AM
#4
the onclick should go in the button but the width and height should go into the javascript function
-
Jul 25th, 2001, 12:08 PM
#5
Fanatic Member
Try moving the code to a JavaScript function and just call the function in the ONCLICK event:
Code:
function openWin(){
window.open('yourpage.html','newWin',menubar='no',status='no',toolbar='no',height=300,width=300);
}
<input TYPE = "button" VALUE = "Open" ONCLICK = "openWin();">
Chris
-
Jul 25th, 2001, 04:14 PM
#6
PowerPoster
i think the problem lies in your "" marks
you have this:
Code:
onClick="java script:window.open('text/oneday.txt',menubar='no',status='no',toolbar='no',width="400",height="600")";
try this
Code:
onClick="java script:window.open('text/oneday.txt',menubar='no',status='no',toolbar='no',width='400',height='600')";
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Jul 25th, 2001, 08:19 PM
#7
Fanatic Member
That's not necessarily true. I had the same problem. The only fix was to put the code in a function and call the function in the ONCLICK event. More strange browser behavior.
-
Jul 26th, 2001, 03:33 AM
#8
Thread Starter
Fanatic Member
I will try changing the quote maks today.. Unfortunately I don't have time to change this before this meeting they are having so the changes will have to be made after the meeting is over....
-
Jul 26th, 2001, 03:18 PM
#9
I saw an example of the way you are doing it, try this.
Code:
<INPUT TYPE="button" VALUE="Open window2" onClick="msgWindow=window.open('text/oneday.txt','window2','menubar=no,status=no,toolbar=no,width=400,height=600')">
notice ther is only one set of ''
-
Jul 27th, 2001, 03:19 AM
#10
Thread Starter
Fanatic Member
I will try doing both to this problem today as I now have my computer back from the meeting.
-
Jul 27th, 2001, 05:15 AM
#11
Thread Starter
Fanatic Member
Nope it still doesn't work.... This is bugging me now... Though I have vhanged it slightly... I am now calling an ASP file into the new window which helps slighlty because it auto formats the words... The window is still to big.... This is really strange.
-
Jul 27th, 2001, 11:08 AM
#12
can you post the code Chris? jus thte part that opens the window??
-
Jul 27th, 2001, 03:31 PM
#13
I don't know if this is what you are trying but it works
Code:
<form>
<input type=button value="http://www.vbforums.com"
onClick="msgWindow=window.open('http://www.vbforums.com','','menubar=yes,status=yes,toolbar=yes, resizable=yes,scrollbars=yes,width=640,height=480')">
</form>
-
Jul 30th, 2001, 04:15 AM
#14
Thread Starter
Fanatic Member
Cheers scoutt, that last one worked like a treat.. Thanks again!!!!
-
Jul 30th, 2001, 08:43 AM
#15
well it's about time.
I was playing around with another post and came acrossed it and said to myself, "self, you might have what chris is looking for" and tada,, cool glad it worked.
-
Jul 30th, 2001, 09:36 AM
#16
Thread Starter
Fanatic Member
Cool... Well cheers again Scoutt... It really helped. Its a shame that my HTML problem is still there!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|