Sorry I use a different writing style from your example. I'm missing a bracket.
function confirm_entry()
{
if (confirm("Are You Sure? Email will be sent to all customers!"))
{
email('about:blank');
f = document.forms[0];
f.target = winName;
f.action =...
function confirm_entry()
{
if (confirm("Are You Sure? Email will be sent to all customers!"))
email('about:blank');
f = document.forms[0];
f.target = winName;
f.action = 'email_control.asp?action=send';
f.submit();
}
}
Actually it could be a little better at catching opera, not creating errors in NN6x and getting IE4 only. This should be IE4 (can't test).
Disregard what I said about "opera/" it's for getting versions.
var...
well no because document.all is IE only. The 2nd condition in the line is to stop Opera from pretending to be IE.
I think you have to check for "opera " and "opera/" to catch it on any OS but I could be wrong.
1/ Try putting the js file in the same directory, that will rule out or show a path problem
2/ I've never seen a script tag written with line breaks like you have it. It might be fine but try it this way. The path is as I described above. Also, drop language, it's depreciated.
<script...
I looked for some type of method but found nothing. Just FYI I use it to return focus to the app.
function one() {
Word = new ActiveXObject("Word.Application")
Word.visible = true
}
// then after it's lost focus
function two() {
Word.visible = false
Word.visible = true
}
I think...
A ridiculous hack that I know works on PhotoShop.
Word.visible = true
Word.visible = false
Word.visible = true
There has to be a better way, maybe someone will enlighten us.
Ok, you don't need window. for alert. alert alone is fine
if (document.form.user.value=="a" && document.form.pass.value=="b")
{
alert("Thanks")
= gives a value to something
== compares 2 conditions to see if they are the same
This might help
http://www.devguru.com/Technologies/ecmascript/quickref/javascript_index.html
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.