| | |
Help with .js JAVASCRIPT file!!!!!?!!?!?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2004
Posts: 3
Reputation:
Solved Threads: 0
Hi all,
My page utilizes a few javascript files for my navigation bar and also a few other palces... My problems is this - I want to call to a page within the site as in the script below, but I wish it to be a separate WINDOW al-together. If I do what I have written now and the person hit;s the close button on the page I call to it closes the whole window - thus leaving my web page....
HELP!!!!
here's the script I need altered to have it open up a window on it's own.
document.write('</td></tr><tr></form><form><td>');
document.write('<input value="View Titles Slideshow" onClick="parent.location=\'slideshow.htm\'" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button" type="button"><br>');
THANKS SO MUCH!! :lol:
My page utilizes a few javascript files for my navigation bar and also a few other palces... My problems is this - I want to call to a page within the site as in the script below, but I wish it to be a separate WINDOW al-together. If I do what I have written now and the person hit;s the close button on the page I call to it closes the whole window - thus leaving my web page....
HELP!!!!
here's the script I need altered to have it open up a window on it's own.
document.write('</td></tr><tr></form><form><td>');
document.write('<input value="View Titles Slideshow" onClick="parent.location=\'slideshow.htm\'" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button" type="button"><br>');
THANKS SO MUCH!! :lol:
Are you just trying to open up a new window when something is pressed? Why not try the TARGET="_BLANK" method (insert this in your "A HREF" tag)?
Or the following method:
Not sure if this is what you want.
Or the following method:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<script language="javascript"> <!-- function popupNewWindow(page) { window.open(page, "AddTask", "width=570,height=560,location=no,scrollbars=yes,menubars=yes"); } --> </script> <a href="javascript:popupNewWindow('somepage.htm')">Click insert new</a>
Not sure if this is what you want.
Last edited by samaru; Jun 13th, 2004 at 11:26 pm.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Yes! Sorry for the f-up. Also, Dani, is there something you can do about the horrible parsing job the code tags do? It's putting unnecessary spacing between code. Look at the code I posted before, where it says "NewWindow" - there's a spacing there.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Ok, I dont wont to open another thread I'll ask here.
I have some stupid problem with reference to window.location!!! :-|
If 2 files bla.htm & bla.js(linked to first one ofcourse).
I wont to write a function witch loads another site when u press the onsubmit button. Im using window.location="mail.htm" in bla.js file but no results!!
So I have to make some kind of reference, but I dont know how, please help!
I have some stupid problem with reference to window.location!!! :-|
If 2 files bla.htm & bla.js(linked to first one ofcourse).
I wont to write a function witch loads another site when u press the onsubmit button. Im using window.location="mail.htm" in bla.js file but no results!!

So I have to make some kind of reference, but I dont know how, please help!
•
•
•
•
Originally Posted by Comatose
top.window.location="mail.html";
no?
In bla.htm I have this submit button in form with user name & password I if they have the write one they are redirected to other site.If u know what I meen?
But I cant make a redirection in bla.js file. If I put the script in bla.htm file it works, but I dont wont to to this.
![]() |
Similar Threads
- Trying to change this JavaScript code, to work without External File..!! How?? plz (JavaScript / DHTML / AJAX)
- Which is faster.. javascript file or embedded? (ASP.NET)
- Calling a PHP file from a javascript code (JavaScript / DHTML / AJAX)
- Connecting To External Javascript File (JavaScript / DHTML / AJAX)
- i want to declare header file in javascript (JavaScript / DHTML / AJAX)
- Error reading XML file in Javascript (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: TXT Plays like a Music File?
- Next Thread: Begining Java...
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child close codes column createrange() css cursor date debugger decimal dependent design disablefirebug dom download dropdown editor element embed engine enter error events explorer ext file firefox form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security select shopping size software unicode w3c web wysiwyg \n






