mrpaulius — 2013-07-24T17:03:39-04:00 — #1
Sorry if I post in wrong place, there were no section for newbies in .js forum
Here's my code:
<title>Your page title</title>
<meta name="description" content="page_description">
<meta name="keywords" content="keyword1, keyw2, keyw3">
<meta name="author" content="MrPaulius">
<link rel="stylesheet" href="style.css">
<input type="text" name="inputA" id="inputA" size="4">
<input type="text" name="inputB" id="inputB" size="4">
<input type="button" value="Add up" onclick="newWindow()">
pullo — 2013-07-24T17:09:46-04:00 — #2
mrpaulius — 2013-07-24T17:11:05-04:00 — #3
sorry forgot to mention, js code is in external file.
felgall — 2013-07-24T17:42:00-04:00 — #4
If it is in an external file then that file needs to be attached into the HTML with a script tag just before the </body>
mrpaulius — 2013-07-24T17:48:33-04:00 — #5
It is attached in head, isint that where it supposed to be?
My IE says that it restricted page from running scripts or ActiveX controls.
Once i allow it, js works. I can understand why.. js works properly in other websites.
mittineague — 2013-07-24T19:16:06-04:00 — #6
I'm guessing it's because the js wants to open a window and the browsers are warning you.
Maybe there are some option settings like "allow script to ..." somewhere you need to change?
pullo — 2013-07-25T01:16:13-04:00 — #7
With IE, you will need to allow the JS to run explicitly when you are running the file locally.
I haven't tried this, but according to Google you can up enable Active Content from local files in the advanced tab of the Internet Options.
mrpaulius — 2013-07-25T03:10:19-04:00 — #8
Well, at least i know now there is nothing rong with my code thanks guys for help