I've had a problem with the following script working in Safari web browsers. Works fine in all others but not Safari. Did I miss something??
<script language="javascript">
<!--
function CreateForm()
{
//create form
var form = document.createElement("Form");
form.action = " form.name = "ccoptin";
form.target = "_blank";
form.method = "post";
//create text field
var emailInput = document.createElement("Input");
emailInput.type = "text";
emailInput.name = "email";
emailInput.size = "75";
emailInput.value = window.document.Form2.elements["LeftColumnNav1_tbEmail"].value
//create submit button
var submitBtn = document.createElement("Input");
submitBtn.type = "submit";
submitBtn.name = "go";
submitBtn.value = "GO";
//create hidden inputs
var hidden1 = document.createElement("Input");
hidden1.type = "hidden";
hidden1.name = "list";
hidden1.value = "newsletter";
var hidden2 = document.createElement("Input");
hidden2.type = "hidden";
hidden2.name = "confirm";
hidden2.value = "one";
var hidden3 = document.createElement("Input");
hidden3.type = "hidden";
hidden3.name = "showconfirm";
hidden3.value = "F";
var hidden4 = document.createElement("Input");
hidden4.type = "hidden";
hidden4.name = "url";
hidden4.value = "
form.appendChild(emailInput);
form.appendChild(submitBtn);
form.appendChild(hidden1);
form.appendChild(hidden2);
form.appendChild(hidden3);
form.appendChild(hidden4);
window.document.appendChild(form);
form.submit();
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
function clearDefaultText2(obj){
if (obj.value == "")
{
obj.value = "";
}
}
</script>
Any help would be appreciated...
<script language="javascript">
<!--
function CreateForm()
{
//create form
var form = document.createElement("Form");
form.action = " form.name = "ccoptin";
form.target = "_blank";
form.method = "post";
//create text field
var emailInput = document.createElement("Input");
emailInput.type = "text";
emailInput.name = "email";
emailInput.size = "75";
emailInput.value = window.document.Form2.elements["LeftColumnNav1_tbEmail"].value
//create submit button
var submitBtn = document.createElement("Input");
submitBtn.type = "submit";
submitBtn.name = "go";
submitBtn.value = "GO";
//create hidden inputs
var hidden1 = document.createElement("Input");
hidden1.type = "hidden";
hidden1.name = "list";
hidden1.value = "newsletter";
var hidden2 = document.createElement("Input");
hidden2.type = "hidden";
hidden2.name = "confirm";
hidden2.value = "one";
var hidden3 = document.createElement("Input");
hidden3.type = "hidden";
hidden3.name = "showconfirm";
hidden3.value = "F";
var hidden4 = document.createElement("Input");
hidden4.type = "hidden";
hidden4.name = "url";
hidden4.value = "
form.appendChild(emailInput);
form.appendChild(submitBtn);
form.appendChild(hidden1);
form.appendChild(hidden2);
form.appendChild(hidden3);
form.appendChild(hidden4);
window.document.appendChild(form);
form.submit();
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
function clearDefaultText2(obj){
if (obj.value == "")
{
obj.value = "";
}
}
</script>
Any help would be appreciated...