Hi there i woul like to pass my variable "testiframe" from javascript to asp, hw can i do???

Thi is the code :

<script type="text/javascript">
if (location.href != top.location.href) {

   testiframe="ok"
} else {
   testiframe="ko"
}
</script>

Recommended Answers

All 2 Replies

One way is to have a hidden input element and assign the value to it. Then on the post-back or form submission, read the value server-side.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.