logo
down
shadow

VBScript in HTML (Inline): How to refresh and quit


VBScript in HTML (Inline): How to refresh and quit

By : José García Bueno
Date : November 22 2020, 10:31 AM
I wish this help you Although VBScript is still supported in internet explorer if you start working on new projects you better look into javascript because that is supported across many browsers, including browsers from Microsoft.
You're code only needed one fix and two statements. I first show the changed code and will explain what I've added:
code :
option explicit
DIM a,b,c,d,x,y,z

a=MsgBox("Do you know what a Palindrome is?", vbYesNo)
Select case a
    case vbNo
        msgbox("A palindrome is a word which is the same spelled forwards or backwards, e.g: Eye.")
End select

document.write("<h1>Palindromes found:</h1>")
b=msgbox("Let's play a game about Palindromes!", vbOKonly)

Do while z=0
    x=Ucase(inputbox("Enter a word to check if it's a Palindrome:(Not case-sensitive!)"))
    If x<>"" then
         y=strReverse(x)
         z=strComp(x,y)
         If z=0 then
             Msgbox("It's a palindrome! Let's see how many you know!")
             document.write("<h2><ul><li>" & x & "</li></ul></h2>")
          end if
    else 
        'instead of quit use Exit Do 
        Exit Do
    end if
Loop

c=msgbox("Sorry! Not a palindrome. Try again?", vbYesNo)
select case c
    case vbNo
        msgbox("Thanks for playing!")
       'I want it to close the tab
       window.close()
    case vbYes
       'I want this to refresh the page or loop back to the beginning
       window.location.href = window.location.href
end select


Share : facebook icon twitter icon
VBScript runtime error '800a01a8', Object required: '' when using WScript.Quit

VBScript runtime error '800a01a8', Object required: '' when using WScript.Quit


By : jerumSchlasses
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , WScript.Quit, as the name implies, is part of the Windows Script Host. You appear to be using VBScript within a different host: ASP. If you need to stop processing an ASP page, just end the server's response by using:
code :
Response.End
VBScript, HTA - INI Parsing, allow inline comments

VBScript, HTA - INI Parsing, allow inline comments


By : riya nayak
Date : March 29 2020, 07:55 AM
around this issue I am currently working on a game launcher and have working code borrowed from the Internet to be able to parse an INI. All is working excellently save for one issue.
code :
WinWidth = Trim(Split(ReadIni( IniFile, "Window", "Width" ), ";")(0))
Prevent user refresh or quit while axios request processing

Prevent user refresh or quit while axios request processing


By : janrexer
Date : March 29 2020, 07:55 AM
wish help you to fix your issue You could use window.onbeforeunload function to have a confirmation popup when user clicked refresh/close/leave browser.
code :
window.addEventListener("beforeunload", function(event) { ... });
Quit VBScript if Statement is True

Quit VBScript if Statement is True


By : uservk
Date : March 29 2020, 07:55 AM
will be helpful for those in need You can temporarily turn off error handling, then try and refer to the folder. If this fails, giving an error, then the folder doesn't exist and you can create it.
Any way to force PyCharm to refresh its understanding of a virtual environment, other than quit & restart?

Any way to force PyCharm to refresh its understanding of a virtual environment, other than quit & restart?


By : D Jaynes
Date : March 29 2020, 07:55 AM
Hope this helps I was able to solve this by editing the interpreter path of the environment you are using, then editing it back and applying. Still not perfect, but you don't have to restart PyCharm.
You can edit it in Preferences/Project/Project Interpreter. Click on cog wheel next to the dropdown interpreters.
Related Posts Related Posts :
  • How to put div over another
  • How to use glyphicons in bootstrap 3.0
  • Wordpress page links not working
  • How Do I Use CSS to Set the Color of An ALink?
  • Webpage doesn't scroll smoothly on screen
  • YouTube iframe, browser looks for file locally
  • html displaying inline image
  • Font acting differently on IE and Firefox
  • Encoding and decoding of the character references
  • An Image Button navigate to another site html/css
  • IE8 "Save Target as ..." won't display for block elements
  • Image hover transition for span - CSS
  • How to apply min and max on textarea?
  • How to draw multiple horizontal lines (Notebook Paper effect) using css?
  • Table Printing Issue: Gaps in top and Bottom Border of th Elements
  • grouping elements with div and applying stylesheet for that group
  • Click <div> to expand, then click again to shrink - Its expanding, just not shrinking
  • CSS - How can I center a <script>'s output?
  • Django's template variable gets interpreted as HTML
  • ngx datatable vertical scroll with rowheight set to auto
  • How to make input text border with CSS when it's OnFocus
  • Anyone know of a calendar web widget for my website I could use?
  • How does Bootstrap manage to use fixed positioning for navbar on iOS?
  • Centered text in fully clickable table cell
  • Compare HTML and HTML5
  • steps of creating webpage in bangla
  • css root element margin
  • What is the point of using absolute positioning in CSS?
  • Responsive solution for long URLs (that exceed the device width)
  • Divs don't collapse as they should - media queries
  • QTreeWidgetItem display html
  • Testing html/css image on local from jfiddle
  • long attribute value of HTML
  • Why my svg picture is truncated at the bottom when embedded in html
  • Display CSS: some divs fixed, some flexible (2)
  • How to append href strings with variables in html with PHP?
  • css - Why is there a big white space between text lines?
  • div image position fixed + scroll
  • Hide specific elements from html using css
  • how to align the arrow in menu item?
  • How do I create a trapezoidal button using CSS?
  • Background position seems to be inaccurate
  • CSS background color is overruled by the background image
  • Oblique or twisted border shape
  • Overflow in div tag doesn't work
  • How to show the vertical image into horizontal manner using HTML and CSS?
  • css3 animation issue move div to left and move it back
  • HTML <code> - get rid of newlines
  • Vertical Align Two Spans (Different font size)
  • Position fixed not working with video poster
  • Having issues placing html buttons side by side in a form
  • how to center text in the middle of the page
  • Sublime Autocompletion for HTML using Emmet inside .sublime-autocompletion file
  • Align bottom wrapped text at the left of an image
  • I'm trying to get :after:hover to work
  • Header and Picture won't Display Correctly
  • SVG stacking, anchor elements, and HTTP fetching
  • Positioning two elements on opposite ends of a 100% with header
  • How to overlay an image inside an image with HTML, CSS
  • Selected date isn't kept in select box
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org