Home Posts Topics Members FAQ
Mountain Man
Hi,
I'm trying to use window.open from inside a user defined function, and
it's not working. A code example is shown below. Thanks for any help
you can give.
Mountain Man
============
<script>
function openFootnote(co ntentURL) {
window.open('co ntentURL','foot notes','height= 180,width=160') ;
}
</script>
I've tried calling on the function 2 different ways, as shown below.
Nothing happens either way.
<a href="javascrip t:(void)" onClick="openFo otnote(fn1.html );">...</a>
<a href="javascrip t:(void)" onClick="return
openFootnote(fn 1.html);">...</a>
Jul 17 '05 #1
Subscribe Reply
4 1986
Fred H
This is a PHP group, not a Javascript group. You are OT.
--
Fred H
void FredH::Contact( ) {
TextToSpeach.sa y("frode at age dee dee dot en oh");
}
Jul 17 '05 #2
michel
off topic here.
try: alt.javascript
"Mountain Man" <ei************ *@yahoo.com> wrote in message
news:78******** *************** ***@posting.goo gle.com...
Hi,I'm trying to use window.open from inside a user defined function, and
it's not working. A code example is shown below. Thanks for any help
you can give.Mountain Man
============<script>
function openFootnote(co ntentURL) {
window.open('co ntentURL','foot notes','height= 180,width=160') ;
}</script>
I've tried calling on the function 2 different ways, as shown below.
Nothing happens either way.<a href="javascrip t:(void)" onClick="openFo otnote(fn1.html );">...</a>
<a href="javascrip t:(void)" onClick="return
openFootnote(fn 1.html);">...</a>
Jul 17 '05 #3
Alvaro G Vicario
*** Mountain Man wrote/escribió (26 Feb 2004 03:38:55 -0800):
function openFootnote(co ntentURL) {
window.open('co ntentURL','foot notes','height= 180,width=160') ;
} <a href="javascrip t:(void)" onClick="return
openFootnote(fn 1.html);">...</a>
Since openFootnote() returns nothing there's no point in doing this. Just
try:
<a href="javascrip t:openFootnote( 'fn1.html')">
Anyway, I guess your own code should work fine, simply note fn1.html is not
a variable but a string and you forgot quotes.
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #4
Mountain Man
Oops!
I didn't mean to send this post here. I could have sworn I was sending
to comp.lang.javac ript before I hit the submit button. Sorry.
Best wishes,
Mountain Man
Jul 17 '05 #5
This thread has been closed and replies have been disabled. Please start a new discussion.
Similar topics
3 20523 download PDF in new window by: Michael |last post by: I am trying to allow a user to view a PDF in a new window. I currently have this working using the following: <a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a> The problem with the above solution is the back/forward buttons and all the other browser options. Because of this, I am trying to get the following solution to... Javascript |
2 4106 window.open not working in IE5 by: venkatesh |last post by: Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size. However, this is not happening in IE 5. Can anyone help me solve this problem? Code: Script: Javascript |
9 4976 alert() and message window by: Justin Koivisto |last post by: Is there a way to create an alert-like message box that uses a custom image? Basically, I want to replace the default ! image with something else. -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. Javascript |
2 1663 window.open not working from inside user defined function by: Mountain Man |last post by: Hi, I'm trying to use window.open from inside a user defined function, and it's not working. A code example is shown below. Thanks for any help you can give. Mountain Man ============ <script> Javascript |
12 12401 Popup Window generated from Server Side by: HarveyB |last post by: I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank, 'height=200,width=400,status=no,toolbar=no, menubar=no,location=no resizable=no scrollable=no'); but I can't seem to invoke the client side script from within a Server... .NET Framework |
2 2828 target="_blank" cannot open a new window by: Matt |last post by: In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the form and open a new window called page2.asp. When the user clicks submit button on page2.asp, I expected to open a new window called page3.asp. Unfortunately, it just open page3.asp in the same window as... Javascript |
14 11031 Opening image in new window without padding by: D. Alvarado |last post by: Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin =... HTML / CSS |
26 5640 window object by: yb |last post by: Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized several parts of the DOM, but this does not include the window object. Thank you Javascript |
4 6377 Access Relationships Window: Proper Layout? by: alexandre.brisebois |last post by: Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database to look a and I am loosing tremendious amounts of time trying to organize it so that I could view it. Regards, Alexandre Brisebois Microsoft Access / VBA |
3 6448 Pop up modal browser window inside another browser by: Jimmy |last post by: Is it possible to open a pop-up browser window (modal-style) inside another browser? e.g. // assuming something is calling this function inside the html as some event got triggered function doSomethingInDiffWindow() { // do something // open up a pop-up modal window // continue back on doing something after pop-up modal window Javascript |
7453
What is ONU? by: marktang |last post by: ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main... General |
7647
Problem With Comparison Operator <=> in G++ by: Oralloy |last post by: Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ... C / C++ |
7802
Maximizing Business Potential: The Nexus of Website Design and Digital Marketing by: jinu1996 |last post by: In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that... Online Marketing |
1 7410 The easy way to turn off automatic updates for Windows 10/11 by: Hystou |last post by: Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For... Windows Server |
4940 Couldnt get equations in html when convert word .docx file to html file in C#. by: conductexam |last post by: I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert... C# / C Sharp |
3441 Trying to create a lan-to-lan vpn between two differents networks by: TSSRALBI |last post by: Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in... Networking - Hardware / Configuration |
1 1865 transfer the data from one system to another through ip address by: 6302768590 |last post by: Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system C# / C Sharp |
1 1007
How to add payments to a PHP MySQL app. by: muto222 |last post by: How can i add a mobile payment intergratation into php mysql website. PHP |
692
Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy by: bsmnconsultancy |last post by: In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating... General |
By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.
To disable or enable advertisem*nts and analytics tracking please visit the page.