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
No
You can use the usual array of pretend barriers, no right click etc. but JS is a client side language and therefore needs to be download to work.
Using JS, the best advice I can give is to make the file hard enough to read that only people that can read JS will get to the sensitive info...
It doesn't matter how the existing string got there, it will add it to the existing value. Even if it's just regular text in a division or table it will do the same thing by replacing value with innerHTML.
<html>
<head>
<title></title>
<script>
UnCheck_State = 'with border'
Check_State =...
I think I understand what you mean
this adds a string to the end of an existing string
document.getElementById('something').value += new_string
this replaces an existing string with a new one
document.getElementById('something').value = new_string
let me know if I'm barking up the right tree
I know nothing of server side VBScript. I don't know what's required to send the variable. This puts the condition in onsubmit but it is already a global variable.
<script>
myvar = false
UnCheck_State = 'with border'
Check_State = 'borderless'
function Name(state) {
a =...
No it doesn’t matter, I left it as text so you could see it. If you need to support lesser browsers as opposed to forward compatibility change this:
document.getElementById('something')
to this
document.formname.something
Incase your wondering, this is false
if (!state) {
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.